package com.springbootstudy.demo.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
public class TemplatesController {
    private static Logger log = LoggerFactory.getLogger(QueryController.class);

    @RequestMapping("/demo")
    public String toIndex(Map<String, Object> map){
        map.put("user", "Tyrone");

        return "index";
    }
}
